<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="ISO-8859-1"%>
<%
  String username = "";
  String password = "";
  request.setCharacterEncoding("utf-8");
  
  username = request.getParameter("username");
  password = request.getParameter("password");
  
  if("admin".equals(username) && "admin".equals(password)) {
	  session.setAttribute("loginUser", username);
	  request.getRequestDispatcher("login_success.jsp").forward(request, response);
  } else {
	  response.sendRedirect("login_failure.jsp");
  }
%>